import { lazy } from "react";
import { Navigate } from "react-router-dom";

const Login = lazy(() => import("../pages/Login"));
const Home = lazy(() => import("../pages/Home"));
import RouterChildrenList from "./children";
const Search = lazy(() => import("../pages/Search")) ;
const Detail = lazy(() => import("../pages/Detail"));
const Ding = lazy(() => import("../pages/Ding"));
const Cart = lazy(() => import("../pages/Cart"));
const Xq = lazy(() => import("../pages/Xq"));
const Dian = lazy(() => import("../pages/Dian"));
const Dan = lazy(() => import("../pages/Dan"));
const Xi = lazy(() => import("../pages/Xi"));
const Chu = lazy(() => import("../pages/Chu"));
const Zi = lazy(() => import("../pages/Zi"));
const Kang = lazy(() => import("../pages/Kang"));
const Cang = lazy(() => import("../pages/Cang"));
const Fen = lazy(() => import("../pages/Fen"));
const DetailObj = lazy(() => import("../pages/DetailObj"));
// 商城搜索
const ShopSearch = lazy(()=> import("../pages/ShopSearch"));
const SeekingMedicalAttentiondetail = lazy(()=>import("../pages/Seekingmedicalattentiondetail"));
const Alldepartments = lazy(()=>import("../pages/Alldepartments"));
const AlldepartmentsItem = lazy(()=>import("../pages/AlldepartmentsItem"));
const Details = lazy(()=>import("../pages/Details"));
const AskPage = lazy(()=>import("../pages/AskPage"));
const WatchVideo = lazy(()=>import("../pages/WatchVideo"));
const City = lazy(()=>import("../pages/City"));
const Kf = lazy(()=>import("../pages/Kf"));
const Sao = lazy(()=>import("../pages/Sao"));
const Putaway = lazy(()=>import("../pages/Putaway"));
const Grounds = lazy(()=>import("../pages/Grounds"));
const Wallet = lazy(()=>import("../pages/Wallet"));
const Sleep = lazy(()=>import("../pages/Sleep"));
const Monitor = lazy(()=>import("../pages/Monitor"));
const Health = lazy(()=>import("../pages/Health"));
const Blood =lazy(()=>import("../pages/Blood"));
const Asthma = lazy(()=>import("../pages/Asthma"));
const Device = lazy(()=>import("../pages/Device"));
const Butler = lazy(()=>import("../pages/Butler"));
const One = lazy(()=>import("../pages/One"));
const Doctor = lazy(()=>import("../pages/Doctor"));
const Register = lazy(()=>import("../pages/Register"));
const Expert =lazy(()=>import("../pages/Expert"));
const Science =lazy(()=>import("../pages/Science"));
const Gynaecology = lazy(()=>import("../pages/Gynaecology"));
const Academic = lazy(()=>import("../pages/Academic"));
const Education = lazy(()=>import("../pages/Education"));
const Male = lazy(()=>import("../pages/Male"));
const Skin = lazy(()=>import("../pages/Skin"));
const Review = lazy(()=>import("../pages/Review"));
const Fix = lazy(()=>import("../pages/Fix"));
const Bodyt = lazy(()=>import("../pages/Babyt"));
const Mother = lazy(()=>import("../pages/Mother"));
const Complaint = lazy(()=>import("../pages/Complaint"));
const Zhuan = lazy(()=>import("../pages/zhuan"));
const ByYao = lazy(()=>import("../pages/BuyYao"));
const Gravida = lazy(()=>import("../pages/Gravida"));
const Tumor = lazy(()=>import("../pages/Tumor"));
const Firming = lazy(()=>import("../pages/Firming"));
const Certrem = lazy(()=>import("../pages/Centrem"));
const Advice = lazy(()=>import("../pages/Advice"));
const Medicine = lazy(()=>import("../pages/Medicine"));
const Gastrointestinal = lazy(()=>import("../pages/Gastrointestinal"));
const Psychological = lazy(()=>import("../pages/Psychological"));
// 用药指导
const Medicationguidance = lazy(()=>import("../pages/Medicationguidance"));
// 医护上门
const MedicalDoorstep = lazy(()=>import("../pages/MedicalDoorstep"));
// 健康权益
const HealthRights =lazy(()=>import("../pages/HealthRights"));
// 极速咨询
const QuickConsultation = lazy(()=>import("../pages/QuickConsultation"));
// 体验预约
 
//避孕药
import Control from "../pages/Control";
 
const Experiencereservation = lazy(()=>import("../pages/Experiencereservation"));
 
const RouterList = [
  {
    path: "/",
    element: <Navigate to="/home/home" />,
  },
  {
    path: "/login",
    element: <Login />,
  },
  {
    path: "/home",
    element: <Home />,
    children: RouterChildrenList,
  },
  {
    path: "/search",
    element: <Search />,
  },
  {
    path: "/detail/:id",
    element: <Detail />,
  },
  {
    path: "/ding",
    element: <Ding />,
  },
  {
    path: "/cart",
    element: <Cart />,
  },
  {
    path: "/xq",
    element: <Xq />,
  },
  {
    path: "/dian",
    element: <Dian />,
  },
  {
    path: "/dan",
    element: <Dan />,
  },
  {
    path: "/seekingmedicalattentiondetail/:id/:tabIndex",
    element: <SeekingMedicalAttentiondetail />,
  },
  {
    path: "/chu",
    element: <Chu />,
  },
  {
    path: "/zi",
    element: <Zi />,
  },
  {
    path: "/kang",
    element: <Kang />,
  },
  {
    path: "/cang",
    element: <Cang />,
  },
  {
    path: "/fen",
    element: <Fen />,
  },
  {
    path: "/alldepartments",
    element: <Alldepartments />,
  },
  {
    path: "/alldepartmentsitem",
    element: <AlldepartmentsItem />,
  },
  {
    path: "/shopsearch",
    element: <ShopSearch />,
  },
  {
    path: "/xi",
    element: <Xi />,
  },
  {
    path: "/doctor",
    element: <Doctor />,
  },
  {
    path: "/register",
    element: <Register />,
  },
  {
    path: "/expert",
    element: <Expert />,
  },
  {
    path: "/science",
    element: <Science />,
  },
  {
    path: "/medicine",
    element: <Medicine />,
  },
  {
    path: "/gastrointestinal",
    element: <Gastrointestinal />,
  },
  {
    path: "/male",
    element: <Male />,
  },
  {
    path: "/psychological",
    element: <Psychological />,
  },
  {
    path: "/details/:id",
    element: <Details />,
  },
  {
    path: "/ask",
    element: <AskPage />,
  },
  {
    path: "/dan",
    element: <Dan />,
  },
  {
    path: "/watchvideo",
    element: <WatchVideo />,
  },
  {
    path: "/complaint",
    element: <Complaint />,
  },
  {
    path: "/zhuan",
    element: <Zhuan />,
  },
  {
    path: "/buyyao",
    element: <ByYao />,
  },
  {
    path: "/gravida",
    element: <Gravida />,
  },
  {
    path: "/ding",
    element: <Ding />,
  },
  {
    path: "/cart",
    element: <Cart />,
  },
  {
    path: "/xq",
    element: <Xq />,
  },
  {
    path: "/dian",
    element: <Dian />,
  },
  {
    path: "/dan",
    element: <Dan />,
  },

  {
    path: "/chu",
    element: <Chu />,
  },
  {
    path: "/zi",
    element: <Zi />,
  },
  {
    path: "/kang",
    element: <Kang />,
  },
  {
    path: "/cang",
    element: <Cang />,
  },
  {
    path: "/fen",
    element: <Fen />,
  },
  {
    path: "/seekingmedicalattentiondetail/:id/:tabIndex",
    element: <SeekingMedicalAttentiondetail />,
  },
  {
    path: "/alldepartments",
    element: <Alldepartments />,
  },
  {
    path: "/alldepartmentsitem",
    element: <AlldepartmentsItem />,
  },

  {
    path: "/xi",
    element: <Xi />,
  },
  {
    path: "/city",
    element: <City />,
  },
  {
    path: "/kf",
    element: <Kf />,
  },
  {
    path: "/watchvideo",
    element: <WatchVideo />,
  },
  {
    path: "/details/:id",
    element: <Details />,
  },
  {
    path: "/ask",
    element: <AskPage />,
  },
  {
    path: "/watchvideo",
    element: <WatchVideo />,
  },
  {
    path: "/complaint",
    element: <Complaint />,
  },
  {
    path: "/zhuan",
    element: <Zhuan />,
  },
  {
    path: "/buyyao",
    element: <ByYao />,
  },
  {
    path: "/gravida",
    element: <Gravida />,
  },

  {
    path: "/sao",
    element: <Sao />,
  },
  {
    path: "/putaway",
    element: <Putaway />,
  },
  {
    path: "/grounds",
    element: <Grounds />,
  },
  {
    path: "/wallet",
    element: <Wallet />,
  },
  {
    path: "/sleep",
    element: <Sleep />,
  },
  {
    path: "/monitor",
    element: <Monitor />,
  },
  {
    path: "/xi",
    element: <Xi />,
  },
  {
    path: "/health",
    element: <Health />,
  },
  {
    path: "/blood",
    element: <Blood />,
  },
  {
    path: "/asthma",
    element: <Asthma />,
  },
  {
    path: "/device",
    element: <Device />,
  },
  {
    path: "/butler",
    element: <Butler />,
  },

  {
    path: "/one",
    element: <One />,
  },
  {
    path: "/complaint",
    element: <Complaint />,
  },
  {
    path: "/doctor",
    element: <Doctor />,
  },
  {
    path: "/register",
    element: <Register />,
  },
  {
    path: "/expert",
    element: <Expert />,
  },
  {
    path: "/science",
    element: <Science />,
  },
  {
    path: "/detail/:id",
    element: <DetailObj />,
  },
  {
    path: "/gynaecology",
    element: <Gynaecology />,
  },
  {
    path: "/academic",
    element: <Academic />,
  },
  {
    path: "/education",
    element: <Education />,
  },
  {
    path: "/male",
    element: <Male />,
  },
  {
    path: "/skin",
    element: <Skin />,
  },
  {
    path: "/review",
    element: <Review />,
  },
  {
    path: "/fix",
    element: <Fix />,
  },
  {
    path: "/bodyt",
    element: <Bodyt />,
  },
  {
    path: "/mother",
    element: <Mother />,
  },
  {
    path: "/kf",
    element: <Kf />,
  },
  {
    path: "/medicationguidance",
    element: <Medicationguidance />,
  },
  {
    path: "/medicalDoorstep",
    element: <MedicalDoorstep />,
  },
  {
    path: "/healthrights",
    element: <HealthRights />,
  },
  {
    path: "/quickconsultation",
    element: <QuickConsultation />,
  },
  {
    path: "/experiencereservation",
    element: <Experiencereservation />,
  },
  {
    path: '/tumor',
    element: <Tumor />
  },
  {
    path: '/firming',
    element: <Firming />
  },
  {
    path: '/certrem',
    element: <Certrem />
  },
  {
    path: '/advice',
    element: <Advice />
  },
  {
    path: '/control',
    element: <Control />
  },

  
];
export default RouterList;
